package com.hzj.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hzj.pojo.VoteItem;
import com.hzj.pojo.VoteSubject;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author hzj
 * @since 2021-03-19
 */
@Repository
@Mapper
public interface VoteSubjectMapper extends BaseMapper<VoteSubject> {
    List<VoteSubject> showAll();

    IPage<Map<String, Object>> showCount(Page page,@Param("title") String title);

    Map<String,Object> checkSubject(int id);
}
